package user;


import function.Add;
import function.Delete;
import function.Find;
import function.FindAll;

public class Administrator extends User{
    public Administrator(String name) {
        super(name);
        super.functions[1] = new Add();
        super.functions[2] = new Delete();
        super.functions[3] = new FindAll();
        super.functions[4] = new Find();
    }

    @Override
    public void menu() {
        System.out.println("****************************");
        System.out.println("0.退出");
        System.out.println("1.增加图书");
        System.out.println("2.删除图书");
        System.out.println("3.查看图书状态");
        System.out.println("4.查找图书");
        System.out.println("****************************");

    }
}
